package com.pmx.mall.product.dao;

import com.pmx.mall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * spu信息
 * 
 * @author pmx
 * @email 746618739@qq.com
 * @date 2022-10-02 21:44:10
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    @Update("UPDATE pms_spu_info SET publish_status = #{code}, update_time = NOW() WHERE id = #{spuId}")
    void updateSpuStatusUp(@Param("spuId") Long spuId, @Param("code") int code);
}
